package com.treeroot.adminservice.admin;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;


/**
 * @Description:    开启SpringAdmin服务
 * @Author:treeRoot
 * @Email:553503639@qq.com
 * @Date: Create in 15:02 / 2022/5/23
 */
@EnableAdminServer    //开启SpringAdmin服务
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient   //nacos注册
@ComponentScan(basePackages = {"com.treeroot"})
public class AdminServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminServerApplication.class, args);
    }
}


